/*
 * @Description:
 * @Version: 0.1
 * @Author: EveChee
 * @Date: 2020-05-25 11:58:21
 * @LastEditTime: 2021-01-29 17:12:29
 */
import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)
export const staticRoutes: Array<RouteConfig> = [
    {
        path: '/safeguard-admin',
        meta: {
            title: '维权模块',
            icon: 'el-icon-s-home',
            inTheBar: true,
            permission: 1,
            lazy: true,
        },
    },
    {
        path: '/dealer-admin',
        meta: {
            title: '选交易商模块',
            icon: 'el-icon-s-home',
            inTheBar: true,
            permission: 1,
            lazy: true,
        },
    },
    {
        path: '/fx110-app-admin',
        meta: {
            title: '主站APP模块',
            icon: 'el-icon-s-home',
            inTheBar: true,
            permission: 1,
            lazy: true,
        },
    },
]
const routes: Array<RouteConfig> = [
    {
        path: '/',
        name: 'Home',
        component: Home,
    },
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes,
})

export default router
